<?php

namespace App\Http\Requests\Admin;

use Illuminate\Foundation\Http\FormRequest;

class DeptRequest extends FormRequest
{

    public function rules(): array
    {
        return [
            'name'     => 'required|string',
            'code'     => 'required|string',
            'parentId' => 'required|integer',
            'sort'     => 'required|integer|min:0',
            'status'   => 'required|in:0,1',
        ];
    }
}
